package com.gdyd.boot.service.impl;

import com.gdyd.boot.bean.City;
import com.gdyd.boot.mapper.ICityMapper;
import com.gdyd.boot.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CityServiceImpl implements ICityService {

    @Autowired
    ICityMapper cityMapper;

    @Override
    public City findCityById(Long id) {
        return cityMapper.findCityById(id);
    }

    @Override
    public int insertCity(City city) {
        return cityMapper.insertCity(city);
    }

    @Override
    public void insertCityByXml(City city) {
        cityMapper.insertCityByXml(city);
    }
}
